import request from '@/utils/request'
export default{
  //获取菜单
  reqMenuList : ()=>{
   return request({
     url:`/admin/acl/permission`,
     method:'get',
   })
  },
  //保存
  reqAddMenu:(data)=>{
   return request({
     url:`/admin/acl/permission/save`,
     method:'post',
     data,
   })
  },
  //修改
  reqUpdateMenu:(data)=>{
   return request({
     url:`/admin/acl/permission/update`,
     method:'put',
     data,
   })
  },
  //删除
  reqDeleteMenu:(id)=>{
   return request({
     url:`/admin/acl/permission/remove/${id}`,
     method:'delete'
   })
  }
}

